import request from '/@/utils/request';

export function powerApi() {
  return {
    get_roles_rights : (Id:number) =>{
      return request({
				url: '/admin/powers/get_role_right',
				method: 'post',
				data: {roleId:Id},
			})
    },
    set_roles_rights : (params : object) =>{
      return request({
        url:'/admin/powers/set_role_right',
        method:'post',
        data:params
      })
    },
  
  }
}